/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bm.util;

import java.util.Calendar;

/**
 *
 * @author LENOVO
 */
public class MessagePrinter {
    public static boolean printLog = false;
    public static boolean enablePrint = true;
    
    public static void print(Object message){
        if (enablePrint)
            System.out.println(message);
    }
    
    public static void printLog(String logName, Object message){
        if (printLog)
            System.out.println("LOG >>> " + logName + " >>> " + message);
    }
    
    public static void printLog(String logName){
        if (printLog)
            System.out.println(logName);
    }
    
    public static void printSeparator(){
        MessagePrinter.print("==================================================================================================");
    }
    
    public static void printDateSeparator(){
        MessagePrinter.print("====="+Fungsi.formatTanggalCoreFMSS(Calendar.getInstance().getTime(),null)+"==========================================================================");
    }
    
    public static void printDebung(String message){
        System.out.println("["+Fungsi.formatTanggalCoreFMSS(Calendar.getInstance().getTime(),null)+"] "+message);
    }
}
